Repository navigation
test(rest, dogfood): pin the action list agreeing with the by-name read beside a package-less action on another object - #34073
Conversation
…less action on another object Co-Authored-By: Claude <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01QsR2jUcj2x2Wr4UErwBi12
Co-Authored-By: Claude <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01QsR2jUcj2x2Wr4UErwBi12
…her object Co-Authored-By: Claude <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01QsR2jUcj2x2Wr4UErwBi12
…ide a package-less save on another object Co-Authored-By: Claude <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01QsR2jUcj2x2Wr4UErwBi12
Co-Authored-By: Claude <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01QsR2jUcj2x2Wr4UErwBi12
📓 Docs Drift CheckNothing in this diff resolved to a documentable surface (no symbol, route or SDK anchor derived from 0 changed package(s)), so this run has no opinion about the docs. What this run could not see
Coarse fallback — 0 page(s) merely mention a changed package (the pre-#9192 predicate, kept for the deliberately-wide backstop): |
|
domain:server#5 · zhuangjianguo · session_01QsR2jRMKz5NhWVrE4E1U5x Review claim · head ab5aeb0 · 2026-11-15T18:19Z (review-c, S5; ACCEPT read, no contract face) |
|
domain:server#5 · zhuangjianguo · session_01QsR2jRMKz5NhWVrE4E1U5x Review — PASSHead-sha:
No must-fix, no should-fix. Not governed: the area lands this PR per |
|
domain:server#5 · zhuangjianguo · session_01QsR2jUcj2x2Wr4UErwBi12 席位核对Verdict: ACCEPT · head
|
Requested by Steedos · project thread
Part of #33904 — this PR lands the card's measurement and its pins: the HTTP reach of item 1 (not reached; the card regrades to p3) and item 2 (closed on main by #33898, pinned here). The listing seam itself (
readFlattenedMetaItems) is not changed and stays on the card at p3.Clause-②: no
Metadata-protocol: none
维护者速读
packages/qa/dogfood/test/action-list-packageless-other-object.dogfood.test.ts(HTTP 一致性钉子);packages/rest/src/meta-qualified-item-route.test.ts中[#33904] a disabled holder on another object。pnpm --filter @objectstack/rest exec vitest run src/meta-qualified-item-route.test.ts -t 33904,预期 2 个用例通过。What changes
Tests only; no product file moves.
Item 1, HTTP reach (measured first, as the card asks). On a real showcase boot (
bootShowcase, admin session), the card's shape (a package's action on one object and the environment's package-less row of the same name on another, both stored) is not reached over HTTP:showcase_open_docsonshowcase_task):PUT /api/v1/meta/action/showcase_open_docswithobjectName: showcase_productand no?package=answers403 NOT_OVERRIDABLE; the list and the by-name read keep answering the package's item;?names=,?package=and the by-name reads all answer that one item.So the listing and the by-name read agree on every HTTP-reachable state measured, and the card regrades to p3 (its rule 3).
action-list-packageless-other-object.dogfood.test.tspins that agreement in both orders.Item 2 (the seat's addition). A package-less action on
contactbeside a DISABLED holder of the name onaccount: the ADR-0150: the _env qualifier admits a name held only by disabled packages (404, not 409) on the item face (#32183 row 17, R4-B2) #33385 fold's harness probe reported the by-name read stamping the disabled holder's_packageId, so the face withheld the item (404). Re-run on main with fix(metadata-protocol): an action's artifact envelope is grafted only onto the item its package holds at that (object, name) #33898 (68e726d631): served (200),objectName: contact, no_packageId, no package provenance, in both registration orders, for the environment's own item and for a registry-only package-less item. Pinned as a nested describe in the metadata-protocol: an action's route beside a package-less row on another object judges no declaration for the holder's own object, and serves the row under the holder's envelope (ADR-0150 D4) #33456 block of the REST harness, and ablated (below). The reading is also on the card.No answer moves, so there is no FROM→TO table.
Tests
packages/rest/src/meta-qualified-item-route.test.ts, describe[#33904] a disabled holder on another object(2 cases × 2 registration orders; realSchemaRegistry, real protocol, realRestServerroute table).packages/qa/dogfood/test/action-list-packageless-other-object.dogfood.test.ts(new, isolated project; 2 cases, one per save order).Acceptance notes
mergePackageAwareOverlay), and the sealed-managed decline (declinesStoredRow,isStoredEntryOfDeclinedName) judges an action by name, not by(object, name). A package-less row stored beside a package's action on another object (the boot harness shape) is therefore left out of the list while the bare by-name read serves it. No HTTP save reaches that state today (above). NOT MEASURED: an environment row authored BEFORE a managed package that ships the same name on another object is installed.qa_xonshowcase_task, a package-lessPUT /meta/action/qa_xonshowcase_productanswers 200 and the package's own address then serves the product body (the package's action moved object); in the other order the package's save takes the environment's item over. Both read against ADR-0150 D4's(package, object, name)key; the save door is outside this PR's surface.Verification
Head
ab5aeb0cfd(origin/main159757abcmerged in).Tests and typecheck (touched packages: rest, dogfood)
pnpm --filter "@objectstack/dogfood^..." buildunder the verify lock: exit 0.pnpm --filter @objectstack/rest exec vitest run src/meta-qualified-item-route.test.ts: Test Files 1 passed; Tests 325 passed.pnpm --filter @objectstack/rest typecheck: exit 0.pnpm --filter @objectstack/dogfood exec vitest run test/action-list-packageless-other-object.dogfood.test.ts: Test Files 1 passed; Tests 2 passed.pnpm --filter @objectstack/dogfood typecheck: exit 0.eslint --no-inline-configover the two files: exit 0.!, no narrowing arm).Ablation of the item 2 pin
packages/metadata-protocol/src/protocol-artifact-lookup.ts: #33898's owner-key rule bypassed throughscripts/ablation-replace.mjs(anchorif (owner === undefined || singular !== 'action') return artifact;gains|| name !== '__ablation_33904__', x0 to x1),metadata-protocolrebuilt,ablation-dist-preflight.mjsmarker present (exit 0).-t '33456|33904': 5 red of 8, both new cells[404, undefined, undefined, false]against[200, 'contact', undefined, false], the three #33456 shapes red with the holder's envelope; the three CONTROLs green. Restored: blob equals HEAD (288b99c4f897),git diff HEADempty, rebuilt, preflight--absentexit 0, 8 of 8 green. The dogfood pin is a positive agreement pin and is not ablated.HTTP reach readings (the probe, not committed)
Real showcase boot, admin session, head
ac6ab305c5:PUT /meta/action/showcase_open_docs(objectName: showcase_product, no?package=) answered 403NOT_OVERRIDABLE; list,?names=,?package=com.example.showcaseand the by-name read all answered["showcase_task","Open Docs","com.example.showcase","package"].?names=,?package=and the bare and?package=by-name reads all answered["showcase_product","env on product","com.example.qaprobe"].["showcase_task","pkg on task","com.example.qaprobe"](and/_env/too).Derived gate families
node scripts/pm/dispatch-gates.mjs --commands --repo objectstack-ai/objectstackatab5aeb0cfd: 54 families. 52 run locally, each exit 0 captured before any pipe;--ranreconciliation: 54 derived, 52 run, 0 NOT-MEASURED, 2 UNRUN. Declared to CI:pnpm check:dual-build-cjs-loadsandpnpm check:type-check-debt(the latter takes the shared lock; the diff moves no tsconfig, package manifest or source).Generated by Claude Code
🤖 Generated with Claude Code